﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SquidConsult.DAL;
using System.Data;

namespace SquidConsult.BLL
{
    public class SupervisorBL :PeopleBL
    {
        private SupervisorDS supervisorDS = new SupervisorDS();

        #region Get reports
        public IQueryable GetAllReport(string supervisorName)
        {
            return supervisorDS.GetAllReport(supervisorName);
        }

        public IQueryable GetRejectedReport(string supervisorName)
        {
            return supervisorDS.GetRejectedReport(supervisorName);
        }
        #endregion 

        #region Approve and reject report
        public void UpdateStatus(Guid reportId, string status)
        {
            supervisorDS.UpdateStatus(reportId, status);
        }
        #endregion 

    }
}